package com.ny20231079080.service.impl;

import com.ny20231079080.dao.OrderDao;
import com.ny20231079080.dao.Impl.OrderDaoImpl;
import com.ny20231079080.entity.Orders;
import com.ny20231079080.service.OrderService;

import java.sql.SQLException;

public class OrderServiceImpl implements OrderService {
    private OrderDao orderDao=new OrderDaoImpl();
    @Override
    public int insertOrder(Orders order) throws SQLException, ClassNotFoundException {
        return orderDao.insertOrder(order);
    }
}
